|
|- [ push_swap ]
| |- Makefile (Your push_swap Makefile)
|- checker_linux (or checker_Mac)
|
|- [ push_swap_tester ]
| |- push_swap_tester.bash
| |- random_numbers.cpp
| |- Makefile
|
- 운영체제가 리눅스라면
push_swap_tester.bash
에서OS
변수의 값을linux
로 변경해주세요.checker_Mac(or linux)
는push_swap
디렉토리에 있어야 합니다. 자체 제작한 checker를 사용하는 경우에는OS
부분을 모두 주석처리 해주세요.
#==============================================================================
# OS
# OS="Mac"
# OS="linux"
#==============================================================================
-
push_swap 프로젝트 디렉토리 명이
push_swap
이 아니면 bash 파일에 적힌push_swap
경로를 여러분의 디렉토리로 교체하거나 디렉토리명을push_swap
으로 바꾸세요. -
제가 이메일을 잘 확인하지 않는 관계로, 개선사항이나 오류 보고는 슬랙(minckim)으로 해주세요. 제 개인 연락처를 알고계신다면 그냥 카카오톡이나 문자, 전화도 상관없습니다.
-
지지고 볶고 마음대로 하십시오. 왜냐하면 업데이트를 장담할 수 없기 때문에ㅎㅎ;; 출처만 남겨주세요.
-
random_numbers.cpp 를 컴파일해서 임의의 숫자 조합을 만들어낼 수 있습니다.
<숫자 범위 최솟값>
과<숫자 범위 최댓값>
은 선택적인 인자입니다. 기본값은0 ~ (<요소 개수> - 1)
입니다.
bash clang++ random_numbers.cpp -o random_numbers export ARG=$(./random_numbers <요소 개수> [숫자 범위의 최솟값] [숫자 범위의 최댓값]) <push_swap directory>/push_swap $ARG | <push_swap directory>/checker $ARG <push_swap directory>/push_swap $ARG | wc-l
- 사용례
bash clang++ random_numbers.cpp -o random_numbers export ARG=$(./random_numbers 100 1) ../push_swap/push_swap $ARG | ../push_swap/checker $ARG ../push_swap/push_swap $ARG | wc -l
-
If the operating system is Linux, please change the value of variable
OS
tolinux
from push_swap_tester.bash file.checker_Mac(or linux)
should be in the directorypush_swap
. -
If the name of your push_swap project directory is not
push_swap
, replace the push_swap path written in the bash file with your directory, or change the name of your directroy topush_swap
. -
I don't check my e-mail very well, so please report improvements or errors with Slack(minckim). If you know my personal contact information, I don't mind just Kakao Talk, text message, or phone calls.
-
You can make random numbers with random_numbers.cpp.
<range min>
and<range max>
is optional argument. Default is0 ~ (<number of elements> - 1)
.
bash clang++ random_numbers.cpp -o random_numbers export ARG=$(./random_numbers <number of elements> [range min] [range max]) <push_swap directory>/push_swap $ARG | <push_swap directory>/checker $ARG <push_swap directory>/push_swap $ARG | wc-l
- example
bash clang++ random_numbers.cpp -o random_numbers export ARG=$(./random_numbers 100 1) ../push_swap/push_swap $ARG | ../push_swap/checker $ARG ../push_swap/push_swap $ARG | wc -l
git clone git@github.com:minckim42/push_swap_tester.git
cd push_swap_tester
./push_swap_tester.bash
- 2021-07-20:
- 오류를 표준출력에 출력하는 경우에 나타내는 실패 메시지를 수정함. 왜 실패인지 모르겠다는 제보가 종종 있어서 수정함.
- checker가 과제에서 기본으로 제공되는 것으로 변경된 것을 반영함. 르포에 checker를 포함하지는 않음.
- Readme 업데이트
- 2021-07-05:
- 테스트케이스의 자잘한 오타 수정. int형 최댓값 잘못 적음ㅎㅎ;; (21474''3647 -> 21474'8'3647) (제보: hyeonsok)
- 2021-03-22:
- 오류가 발생하는 경우(Error를 출력해야 하는 경우)표준출력이 아닌 표준오류에 출력해야 통과되도록 함
- makefile 메시지 감춤
- bash 파일에 적힌 디렉토리 구조가 잘못되어 있었는데, 올바르게 고침
- 2021-03-15: birthday