Reorganise for Travis

This commit is contained in:
Smaug123
2017-08-05 18:43:28 +01:00
parent ee83c89b4e
commit d59daa5000
6 changed files with 17 additions and 16 deletions

12
Makefile Normal file
View File

@@ -0,0 +1,12 @@
CC=gcc
CFLAGS=-I. -Werror -Wextra
HVM_SUBFOLDER=hvm
hvm: $(HVM_SUBFOLDER)/hvm.o
$(CC) -o hvm_execute $(HVM_SUBFOLDER)/main.c $(HVM_SUBFOLDER)/hvm.c $(CFLAGS)
clean:
rm -f $(HVM_SUBFOLDER)/*.o
test: $(HVM_SUBFOLDER)/hvm.o
./test.sh

View File

View File

@@ -1,11 +0,0 @@
CC=gcc
CFLAGS=-I. -Werror -Wextra
hvm: hvm.o
$(CC) -o hvm main.c hvm.c $(CFLAGS)
clean:
rm -f *.o
test: hvm.o
./test.sh

View File

@@ -1,5 +0,0 @@
#!/bin/sh
set -e
[ $(./hvm "123451^2v5:4?9p2g8pppppp" "") == "945321" ]

5
test.sh Executable file
View File

@@ -0,0 +1,5 @@
#!/bin/sh
set -e
[ $(./hvm_execute "123451^2v5:4?9p2g8pppppp" "") == "945321" ]