Browse Source

test: add an empty sandbox program and update .gitignore.

legacy
Sam Hocevar sam 13 years ago
parent
commit
35454b8f94
3 changed files with 37 additions and 2 deletions
  1. +4
    -0
      .gitignore
  2. +8
    -2
      test/Makefile.am
  3. +25
    -0
      test/debug/sandbox.cpp

+ 4
- 0
.gitignore View File

@@ -4,6 +4,8 @@
*.a
*.la
*.exe
*.elf
*.self
*.userprefs
*.usertasks
*.pidb
@@ -52,6 +54,8 @@ deushax/deushax
deushax/editor
monsterz/monsterz
test/lol-test
test/lol-bench
test/quad
test/sandbox
tools/make-font
# Our data

+ 8
- 2
test/Makefile.am View File

@@ -10,11 +10,12 @@ bench: lol-bench

all-local: quad$(EXEEXT) lol-bench$(EXEEXT)
test x$(MAKE_FSELF) = xno || make_fself quad$(EXEEXT) quad.self
test x$(MAKE_FSELF) = xno || make_fself sandbox$(EXEEXT) sandbox.self
test x$(MAKE_FSELF) = xno || make_fself lol-bench$(EXEEXT) lol-bench.self

CLEANFILES = quad.self lol-bench.self
CLEANFILES = quad.self sandbox lol-bench.self

noinst_PROGRAMS = quad lol-bench $(cppunit_tests)
noinst_PROGRAMS = quad sandbox lol-bench $(cppunit_tests)

TESTS = $(cppunit_tests)

@@ -35,3 +36,8 @@ quad_CPPFLAGS = @LOL_CFLAGS@ @PIPI_CFLAGS@
quad_LDFLAGS = $(top_builddir)/src/liblol.a @LOL_LIBS@ @PIPI_LIBS@
quad_DEPENDENCIES = $(top_builddir)/src/liblol.a

sandbox_SOURCES = debug/sandbox.cpp
sandbox_CPPFLAGS = @LOL_CFLAGS@ @PIPI_CFLAGS@
sandbox_LDFLAGS = $(top_builddir)/src/liblol.a @LOL_LIBS@ @PIPI_LIBS@
sandbox_DEPENDENCIES = $(top_builddir)/src/liblol.a


+ 25
- 0
test/debug/sandbox.cpp View File

@@ -0,0 +1,25 @@
//
// Lol Engine - Sandbox program
//
// Copyright: (c) 2005-2011 Sam Hocevar <sam@hocevar.net>
// This program is free software; you can redistribute it and/or
// modify it under the terms of the Do What The Fuck You Want To
// Public License, Version 2, as published by Sam Hocevar. See
// http://sam.zoy.org/projects/COPYING.WTFPL for more details.
//

#if defined HAVE_CONFIG_H
# include "config.h"
#endif

#include "core.h"

using namespace std;
using namespace lol;

int main(int argc, char **argv)
{
/* Insert any test code here */
return EXIT_SUCCESS;
}


Loading…
Cancel
Save