Skip to content

Commit

Permalink
feat: Add test files to repo
Browse files Browse the repository at this point in the history
  • Loading branch information
smartmic committed Dec 28, 2019
1 parent df0612d commit dacc8ac
Show file tree
Hide file tree
Showing 4 changed files with 2,048 additions and 2 deletions.
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,10 @@ $(distdir).tar.gz: $(distdir)

$(distdir): FORCE
mkdir -p $(distdir)/src
mkdir -p $(distdir)/tests
cp Makefile $(distdir)
cp src/Makefile src/*.cpp src/*.h src/a0086944.txt src/A0086944.BIN $(distdir)/src
cp src/Makefile src/*.cpp src/*.h $(distdir)/src
cp tests/a0086944.txt tests/A0086944.BIN $(distdir)/tests

distcheck: $(distdir).tar.gz
gzip -cd $(distdir).tar.gz | tar xvf -
Expand Down
2 changes: 1 addition & 1 deletion src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ src/elogger: $(sources)
$(CXX) $(CPPFLAGS) $(CXXFLAGS) -o $@ $(sources)

check: all
diff src/a0086944.txt <(./src/elogger src/A0086944.BIN)
diff tests/a0086944.txt <(./src/elogger tests/A0086944.BIN)
@echo "*** ALL TESTS PASSED ***"

install:
Expand Down
Binary file added tests/A0086944.BIN
Binary file not shown.
Loading

0 comments on commit dacc8ac

Please sign in to comment.