From 35454b8f94a23f46f53344d4578f95ee3f182d6b Mon Sep 17 00:00:00 2001 From: Sam Hocevar Date: Sat, 3 Sep 2011 07:47:52 +0000 Subject: [PATCH] test: add an empty sandbox program and update .gitignore. --- .gitignore | 4 ++++ test/Makefile.am | 10 ++++++++-- test/debug/sandbox.cpp | 25 +++++++++++++++++++++++++ 3 files changed, 37 insertions(+), 2 deletions(-) create mode 100644 test/debug/sandbox.cpp diff --git a/.gitignore b/.gitignore index 0a166335..b03f2fd0 100644 --- a/.gitignore +++ b/.gitignore @@ -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 diff --git a/test/Makefile.am b/test/Makefile.am index c22d752e..97783dfd 100644 --- a/test/Makefile.am +++ b/test/Makefile.am @@ -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 + diff --git a/test/debug/sandbox.cpp b/test/debug/sandbox.cpp new file mode 100644 index 00000000..1d3e953c --- /dev/null +++ b/test/debug/sandbox.cpp @@ -0,0 +1,25 @@ +// +// Lol Engine - Sandbox program +// +// Copyright: (c) 2005-2011 Sam Hocevar +// 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; +} +