Skip to content

Commit 2ec6730

Browse files
committed
Add spec/specfile_spec.sh
1 parent 83b33fb commit 2ec6730

File tree

2 files changed

+39
-1
lines changed

2 files changed

+39
-1
lines changed

spec/common-option_spec.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ eval "$(shellspec - -c) exit 1"
3030

3131
Include 'lib/sysexits.sh'
3232

33-
% TESTFILES: 'bin/past-exam-question-to-csv.sh' 'bin/word-quiz-to-csv.sh'
33+
% TESTFILES: 'bin/past-exam-question-to-csv.sh bin/word-quiz-to-csv.sh'
3434

3535
version_check() {
3636
awk -- '

spec/specfile_spec.sh

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
#!/usr/bin/env sh
2+
3+
### File: spec/specfile_spec.sh
4+
##
5+
## Spec File を検証する。
6+
##
7+
## Usage:
8+
##
9+
## ------ Text ------
10+
## shellspec specfile_spec.sh
11+
## ------------------
12+
##
13+
## Metadata:
14+
##
15+
## id - d46f79bf-85e0-419f-912d-78c71b2f5075
16+
## author - <qq542vev at https://purl.org/meta/me/>
17+
## version - 1.0.0
18+
## date - 2023-07-25
19+
## since - 2023-07-25
20+
## copyright - Copyright (C) 2023-2023 qq542vev. Some rights reserved.
21+
## license - <CC-BY at https://creativecommons.org/licenses/by/4.0/>
22+
## package - convert-it-passport
23+
##
24+
## See Also:
25+
##
26+
## * <Project homepage at https://github.com/qq542vev/convert-it-passport>
27+
## * <Bag report at https://github.com/qq542vev/convert-it-passport/issues>
28+
29+
eval "$(shellspec - -c) exit 1"
30+
31+
Describe 'Spec File の検証'
32+
Example 'shellspec --syntax-check'
33+
When call shellspec --syntax-check
34+
The length of stdout should not equal 0
35+
The length of stderr should equal 0
36+
The status should equal 0
37+
End
38+
End

0 commit comments

Comments
 (0)