Compare commits
No commits in common. "master" and "epitar-submission-2" have entirely different histories.
master
...
epitar-sub
2 changed files with 2 additions and 18 deletions
|
|
@ -22,7 +22,7 @@ $(TARGET): $(OBJS)
|
||||||
@echo $(OBJS)
|
@echo $(OBJS)
|
||||||
|
|
||||||
all: $(OBJS)
|
all: $(OBJS)
|
||||||
$(CC) -o $(TARGET) $^ $(LDFLAGS) $(LDLIBS)
|
$(CC) -o $@ $^ $(LDFLAGS) $(LDLIBS)
|
||||||
|
|
||||||
debug: CFLAGS += $(DBG_CFLAGS)
|
debug: CFLAGS += $(DBG_CFLAGS)
|
||||||
debug: LDFLAGS += $(DBG_LDFLAGS)
|
debug: LDFLAGS += $(DBG_LDFLAGS)
|
||||||
|
|
|
||||||
|
|
@ -282,23 +282,7 @@ echo -e "\n$BBlue=== Help and Invalid Arguments ===$Color_Off"
|
||||||
test_help "Help flag"
|
test_help "Help flag"
|
||||||
test_invalid_args "No arguments" ""
|
test_invalid_args "No arguments" ""
|
||||||
test_invalid_args "Invalid flag" "-z"
|
test_invalid_args "Invalid flag" "-z"
|
||||||
test_invalid_args "Invalid flagS" "-zbk"
|
test_invalid_args "Missing archive" "-c"
|
||||||
test_invalid_args "Invalid position" "test.tar -h"
|
|
||||||
test_invalid_args "Invalid flags and position" "test.tar -z"
|
|
||||||
test_invalid_args "Invalid flags and position mix" "test.tar -zhx"
|
|
||||||
test_invalid_args "Invalid position" "test.tar -z"
|
|
||||||
test_invalid_args "Invalid flag mix" "-zh"
|
|
||||||
test_invalid_args "Invalid flag mix 2" "-hnh"
|
|
||||||
test_invalid_args "Invalid flag mix 3" "-cnc"
|
|
||||||
test_invalid_args "Invalid flag mix 3" "-hhhz"
|
|
||||||
test_invalid_args "Invalid flag mix 3" "-hnc"
|
|
||||||
test_invalid_args "Invalid flag mix 3" "-cch"
|
|
||||||
test_invalid_args "Invalid flag mix 3" "-cnc"
|
|
||||||
test_invalid_args "Valid flags multiple" "-cc"
|
|
||||||
test_invalid_args "Incompatible flag" "-cx"
|
|
||||||
test_invalid_args "Missing op flag" "-v"
|
|
||||||
test_invalid_args "Missing archive (c)" "-c"
|
|
||||||
test_invalid_args "Missing archive (x)" "-x"
|
|
||||||
test_invalid_args "Extract with files" "-x archive.tar file.txt"
|
test_invalid_args "Extract with files" "-x archive.tar file.txt"
|
||||||
|
|
||||||
echo -e "\n$BBlue=== Edge Cases ===$Color_Off"
|
echo -e "\n$BBlue=== Edge Cases ===$Color_Off"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue