diff options
| author | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2011-10-14 04:55:05 +0200 |
|---|---|---|
| committer | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2011-10-14 04:55:05 +0200 |
| commit | 6aa0e0017d7d0cddc006da885946934b06949a91 (patch) | |
| tree | 66b688ec32e2f91266db760b1762f2a50cc52036 /libslang/src/test/Makefile | |
| parent | a966db5b71328f6adf9dd767e64b322a3bd7ed9c (diff) | |
| download | erlang-slang-fork-6aa0e0017d7d0cddc006da885946934b06949a91.tar.gz | |
include libslang-1.4.9 and automatically build it and link erlang-slang against it
few (erlang) people will still have libslang-1.4.9 installed or spend time
to get it to link against the driver
Diffstat (limited to 'libslang/src/test/Makefile')
| -rw-r--r-- | libslang/src/test/Makefile | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/libslang/src/test/Makefile b/libslang/src/test/Makefile new file mode 100644 index 0000000..85f64dd --- /dev/null +++ b/libslang/src/test/Makefile @@ -0,0 +1,22 @@ +TEST_SCRIPTS = syntax sscanf loops arith array strops bstring \ + pack stdio assoc selfload struct nspace ospath ifeval anytype arrmult \ + nspace2 prep +TEST_PGM = sltest +RUN_TEST_PGM = ./$(TEST_PGM) +SLANGINC = .. +SLANGLIB = ../$(ARCH)objs + +run_tests: $(TEST_PGM) + @echo "" + @echo "Running tests:" + @echo "" + @for X in $(TEST_SCRIPTS); \ + do \ + $(RUN_TEST_PGM) $$X.sl; \ + done + touch sltest.c + +sltest: sltest.c $(SLANGLIB)/libslang.a + $(CC) $(CFLAGS) $(LDFLAGS) sltest.c -o sltest -I$(SLANGINC) -L$(SLANGLIB) -lslang $(TCAPLIB) -lm +clean: + -/bin/rm -f *~ sltest *.o *.log |
