Install user tests in a subdir of /bin
authorKevin Klues <klueska@cs.berkeley.edu>
Thu, 1 May 2014 01:23:44 +0000 (18:23 -0700)
committerBarret Rhoden <brho@cs.berkeley.edu>
Mon, 5 May 2014 23:23:30 +0000 (16:23 -0700)
user/tests/Makefile
user/tests/runall.sh [new file with mode: 0644]

index 0e3c1fe..c21ba02 100644 (file)
@@ -8,6 +8,7 @@ INCDIR = $(SRCDIR)include
 
 LDLIBS := -lpthread -lbenchutil -lm -liplib -lndb -lbsd
 
+SCRIPTS := $(wildcard $(SRCDIR)*.sh)
 SRCS_C := $(wildcard $(SRCDIR)*.c)
 SRCS_CPP := $(wildcard $(SRCDIR)*.cc)
 HEADERS := $(shell find $(INCDIR) -name *.h)
@@ -35,14 +36,12 @@ $(OBJDIR)/%: $(SRCS_CPP)
 
 all: $(EXECS)
 
-install: $(EXECS)
-       @mkdir -p $(AKAROS_ROOT)/$(FIRST_KFS_PATH)/bin
-       $(Q)cp -uP $^ $(AKAROS_ROOT)/$(FIRST_KFS_PATH)/bin
+install: $(EXECS) $(SCRIPTS)
+       @mkdir -p $(AKAROS_ROOT)/$(FIRST_KFS_PATH)/bin/tests/user
+       $(Q)cp -uP $^ $(AKAROS_ROOT)/$(FIRST_KFS_PATH)/bin/tests/user
 
 uninstall: $(EXECS)
-       @for i in $(EXECS); do \
-               rm -rf $(AKAROS_ROOT)/$(FIRST_KFS_PATH)/bin/$i; \
-       done;
+       $(Q)rm -rf $(AKAROS_ROOT)/$(FIRST_KFS_PATH)/bin/tests/user
 
 clean:
        @echo + clean [TESTS]
diff --git a/user/tests/runall.sh b/user/tests/runall.sh
new file mode 100644 (file)
index 0000000..e69de29