From 856a216065c9188a26a04b272b464ebd4bfdca9c Mon Sep 17 00:00:00 2001 From: Guy Baconniere Date: Wed, 27 Oct 2021 10:18:58 +0200 Subject: [PATCH] 2021-10-27 10:18:58 --- README.md | 8 +++---- libft/README.md | 64 ++++++++++++++++++++++++++++++++++++------------- 2 files changed, 51 insertions(+), 21 deletions(-) diff --git a/README.md b/README.md index ca6c025..6aacc0d 100644 --- a/README.md +++ b/README.md @@ -8,8 +8,8 @@ Unit Testing for 42 Projects git clone --recurse-submodules https://vogsphere.baco.net/baco/42test.git 42test cd 42test git config pull.rebase false -git config user.name "rfederer" -git config user.email "rfederer@student.42lausanne.ch" +git config user.name "${USER-marvin}" +git config user.email "${MAIL-marvin@student.42lausanne.ch}" # -OR- @@ -17,8 +17,8 @@ git clone https://vogsphere.baco.net/baco/42test.git cd 42test git submodule update --init git config pull.rebase false -git config user.name "rfederer" -git config user.email "rfederer@student.42lausanne.ch" +git config user.name "${USER-marvin}" +git config user.email "${MAIL-marvin@student.42lausanne.ch}" ``` ## Update diff --git a/libft/README.md b/libft/README.md index 86f46c8..263330f 100644 --- a/libft/README.md +++ b/libft/README.md @@ -3,11 +3,16 @@ ## Setup Clone [42test](https://vogsphere.baco.net/baco/42test) +``` +git clone --recurse-submodules https://vogsphere.baco.net/baco/42test.git 42test +cd 42test +git config pull.rebase false +git config user.name "${USER-marvin}" +git config user.email "${MAIL-marvin@student.42lausanne.ch}" +``` Create a link to the base of your libft (the one with libft.a and all ft_ and Makefile files) - - ``` cd libft @@ -17,7 +22,7 @@ make setup ln -snvf $HOME/libft libft ``` -Only for Linux +**Only for Linux** ``` sudo apt-get install -qq -y make gcc clang valgrind build-essential @@ -30,14 +35,6 @@ so: $(OBJ) $(OBJ_BONUS) :wq ``` -## Update - -``` -cd libft - -make update -``` - ## Usage ``` @@ -79,12 +76,45 @@ make test - e: [alelievr/libft-unit-test (bench)](https://github.com/alelievr/libft-unit-test) - f: [ysoroko/ft_split_tester](https://github.com/Ysoroko/FT_SPLIT_TESTER) -Create subprojects +## Update + ``` -git submodule add https://github.com/jtoty/Libftest.git -git submodule add https://github.com/alelievr/libft-unit-test.git -git submodule add https://github.com/Tripouille/libftTester.git -git submodule add https://github.com/nemequ/munit.git -git submodule add https://github.com/Ysoroko/FT_SPLIT_TESTER.git +cd libft + +make update +``` + +## REFERENCES + +How to add submodules (already done) +``` +cd libft +git submodule add -f https://github.com/jtoty/Libftest.git +git submodule add -f https://github.com/alelievr/libft-unit-test.git +git submodule add -f https://github.com/Tripouille/libftTester.git +git submodule add -f https://github.com/nemequ/munit.git +git submodule add -f https://github.com/Ysoroko/FT_SPLIT_TESTER.git + +vi ../.gitignore +libft/Libftest +libft/libft-unit-test +libft/libftTester +libft/munit +libft/FT_SPLIT_TESTER +:wq + +# add ignore +vi ../.gitmodules +[submodule "libft/Libftest"] + ignore = dirty +[submodule "libft/libft-unit-test"] + ignore = dirty +[submodule "libft/libfttester"] + ignore = dirty +[submodule "libft/munit"] + ignore = dirty +[submodule "libft/FT_SPLIT_TESTER"] + ignore = dirty +:wq ```