Giter Club home page Giter Club logo

blip's People

Contributors

neechbear avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

blip's Issues

Some tests fail on macOS

nicolaw@laptop: ~/src/blip $ make test
make: gpg: Command not found
all 3 010_basic.sh tests passed in 0.000s.
all 243 020_variable_types.sh tests passed in 0.000s.
test #1 "is_ipv4_address 0.0.0.0" failed:
	program terminated with code 2 instead of 0
test #2 "is_ipv4_address 1.1.1.1" failed:
	program terminated with code 2 instead of 0
test #3 "is_ipv4_address 255.255.255.255" failed:
	program terminated with code 2 instead of 0
test #4 "is_ipv4_address 172.16.0.1" failed:
	program terminated with code 2 instead of 0
test #5 "is_ipv4_address This is obviously not an IP address of any kind!" failed:
	program terminated with code 2 instead of 1
test #6 "is_ipv4_address 1.2.3.4.5" failed:
	program terminated with code 2 instead of 1
test #7 "is_ipv4_address 10.20.300.400" failed:
	program terminated with code 2 instead of 1
test #8 "is_ipv4_address 10.10.10.10/8" failed:
	program terminated with code 2 instead of 1
test #9 "is_ipv4_address 10.-1.2.3" failed:
	program terminated with code 2 instead of 1
test #10 "is_ipv4_address 10.256.0.1" failed:
	program terminated with code 2 instead of 1
test #11 "is_ipv4_prefix 0.0.0.0/0" failed:
	program terminated with code 1 instead of 0
test #12 "is_ipv4_prefix 127.0.0.1/32" failed:
	program terminated with code 1 instead of 0
test #13 "is_ipv4_prefix 10.10.10.1/24" failed:
	program terminated with code 1 instead of 0
test #15 "is_ipv6_address 2001:0db8:85a3:0000:0000:8a2e:0370:7334" failed:
	program terminated with code 2 instead of 0
test #16 "is_ipv6_address 2001:db8:85a3:0:0:8a2e:370:7334" failed:
	program terminated with code 2 instead of 0
test #17 "is_ipv6_address 2001:db8:85a3::8a2e:370:7334" failed:
	program terminated with code 2 instead of 0
test #18 "is_ipv6_address ::1" failed:
	program terminated with code 2 instead of 0
test #19 "is_ipv6_address ::" failed:
	program terminated with code 2 instead of 0
test #20 "is_ipv6_address 2001:0db8::0001" failed:
	program terminated with code 2 instead of 0
test #21 "is_ipv6_address 2001:db8::1" failed:
	program terminated with code 2 instead of 0
test #22 "is_ipv6_address ff02::1:1" failed:
	program terminated with code 2 instead of 0
test #23 "is_ipv6_address ff02::1:ff00:0" failed:
	program terminated with code 2 instead of 0
test #24 "is_ipv6_address This is obviously not an IP address of any kind!" failed:
	program terminated with code 2 instead of 1
test #25 "is_ipv6_address :::d" failed:
	program terminated with code 2 instead of 1
test #26 "is_ipv6_address 2001::1::2:3:4" failed:
	program terminated with code 2 instead of 1
test #27 "is_ipv6_prefix 2001:db8:a0b:12f0::1/64" failed:
	program terminated with code 1 instead of 0
test #28 "is_ipv6_prefix 2000::/3" failed:
	program terminated with code 1 instead of 0
test #29 "is_ipv6_prefix 100::/64" failed:
	program terminated with code 1 instead of 0
test #30 "is_ipv6_prefix ::ffff:a:b:c:d/96" failed:
	program terminated with code 1 instead of 0
test #31 "is_ipv6_prefix 2001:4:112::/48" failed:
	program terminated with code 1 instead of 0
test #32 "is_ipv6_prefix ::1/128" failed:
	program terminated with code 1 instead of 0
test #33 "is_ipv6_prefix ::/0" failed:
	program terminated with code 1 instead of 0
32 of 34 030_ip_validation.sh tests failed in 0.000s.
all 49 040_hwaddr_validation.sh tests passed in 0.000s.
stat: illegal option -- c
usage: stat [-FlLnqrsx] [-f format] [-t timefmt] [file ...]
tests/../blip.bash: line 870: 1534630033 -  : syntax error: operand expected (error token is "-  ")
stat: illegal option -- c
usage: stat [-FlLnqrsx] [-f format] [-t timefmt] [file ...]
tests/../blip.bash: line 870: 1534630033 -  : syntax error: operand expected (error token is "-  ")
test #77 "echo 1" failed:
	expected "0"
	got "1"
test #78 "echo 1" failed:
	expected "0"
	got "1"
2 of 79 050_documentation.sh tests failed in 0.000s.

In tests/../blip.bash line 313:
  elif [[ "$1" =~ ^-?([1-9][0-9]*|0)(\.[0-9]+)?$ ]] ; then
                  ^-- SC1009: The mentioned parser error was in this regex.
                                    ^-- SC1073: Couldn't parse this regex grouping.
                                      ^-- SC1072: Unexpected . Fix any mentioned problems and try again.

test #1 "shellcheck -e SC1090 -e SC2102 -s bash 'tests/../blip.bash' > '/var/folders/w0/j5txs7jd2t3bl2h8xhqv0j4c0000gn/T/tmp.7sWYIRmI' 2>&1" failed:
	program terminated with code 1 instead of 0
1 of 1 060_shellcheck.sh tests failed in 0.000s.
all 16 070_license.sh tests passed in 0.000s.
all 63 080_coverage.sh tests passed in 1.000s.
all 4 090_filesystem.sh tests passed in 0.000s.
test #2 "is_word_in_string '  Test string!  ' 'string'" failed:
	program terminated with code 1 instead of 0
test #3 "is_word_in_string '  Test string!  ' 'Test'" failed:
	program terminated with code 1 instead of 0
test #4 "is_word_in_string '  Test string!  ' 'Test string'" failed:
	program terminated with code 1 instead of 0
3 of 25 100_string_manipulation.sh tests failed in 0.000s.
all 3 110_network.sh tests passed in 1.000s.
all 6 210_cmdarg_clean_state.sh:test_210_1_clean_state_usable() tests passed in 0.000s.
all 3 210_cmdarg_clean_state.sh:test_210_2_clean_state() tests passed in 0.000s.
all 1 210_cmdarg_clean_state.sh:test_210_3_clean_state_subshells() tests passed in 0.000s.
all 27 220_cmdarg_dashdash.sh:test_220_1_dashdash() tests passed in 0.000s.
all 1 230_cmdarg_equals.sh:test_230_1_equals_parsing_shortopt() tests passed in 0.000s.
all 1 230_cmdarg_equals.sh:test_230_2_equals_parsing_longopt() tests passed in 0.000s.
all 1 240_cmdarg_helpers.sh:test_240_1_usage_helper() tests passed in 0.000s.
all 5 240_cmdarg_helpers.sh:test_240_2_custom_helpers() tests passed in 0.000s.
all 1 250_cmdarg_info.sh:test_250_1_info_reject_invalid() tests passed in 0.000s.
all 10 250_cmdarg_info.sh:test_250_2_info_accept_valid() tests passed in 0.000s.
all 3 260_cmdarg_longopt.sh:test_260_1_longopt() tests passed in 0.000s.
all 3 260_cmdarg_longopt.sh:test_260_2_longopt_shortopts_still_work() tests passed in 0.000s.
all 4 260_cmdarg_longopt.sh:test_260_3_longopt_usage_messages() tests passed in 0.000s.
all 6 270_cmdarg_types.sh:test_270_1_flags_required() tests passed in 0.000s.
all 2 270_cmdarg_types.sh:test_270_2_array_undefined() tests passed in 0.000s.
all 7 270_cmdarg_types.sh:test_270_3_array_values() tests passed in 0.000s.
all 2 270_cmdarg_types.sh:test_270_4_hash_undefined() tests passed in 0.000s.
all 6 270_cmdarg_types.sh:test_270_5_hash_values() tests passed in 0.000s.
all 4 270_cmdarg_types.sh:test_270_6_boolean_no_optarg() tests passed in 0.000s.
all 2 270_cmdarg_types.sh:test_270_7_hash_malformed() tests passed in 0.000s.
all 3 280_cmdarg_validators.sh:test_280_1_validator_for_hash() tests passed in 0.000s.
all 3 280_cmdarg_validators.sh:test_280_2_validator_for_array() tests passed in 0.000s.
all 3 280_cmdarg_validators.sh:test_280_3_validator_failure_recognized() tests passed in 0.000s.
make: *** [test] Error 1

Incorrect BLIP_REQUIRE_VERSIFO variable being unset

if [[ -n "${BLIP_REQUIRE_VERSION:-}" ]] ; then
  declare -ax BLIP_REQUIRE_VERSINFO=(${BLIP_REQUIRE_VERSION//[-.]/ })
  if   [[ ${BLIP_REQUIRE_VERSINFO[0]:-} -gt ${BLIP_VERSINFO[0]} ]] \
    || [[ ${BLIP_REQUIRE_VERSINFO[1]:-} -gt ${BLIP_VERSINFO[1]} ]] \
    || [[ ${BLIP_REQUIRE_VERSINFO[2]:-} -gt ${BLIP_VERSINFO[2]} ]] ; then
    echo "blip.bash version $BLIP_VERSION does not satisfy minimum" \
         "required version $BLIP_REQUIRE_VERSION; exiting!" >&2
    $BLIP_INTERNAL_FATAL_ACTION
  fi
  unset BLIP_REQUIRE_VERSIFO
fi

Make a progress indicator bar function with comedy value

  • Halloween: Braaaaaains
  • April Fools Day: Yahooooooo!
  • Nyan cat anniversary (of it being uploaded to YouTube): ~~~~~=[,,_,,]:3
  • May the Fourth: Luuuuuuke!
  • Towel Day: Foooooorty two
  • June 4th (??): KHAAAAAAAAN!
  • Aaron will be late day: Aaaaaaaaron!
  • Pirate day: Yaaaaaaaarr!

Obviously Google-specific in-jokes are probably less awesome though, so find some more globally recognised ones to replace those.

Move man page source from POD to Markdown

While POD is nice, what would be even nicer is if the documentation for the code itself was consistent and written in the same language/format as the rest of the repository readme files. This will mean swapping out pod2man for md2man.

Move TODOs in README.md into GitHub issues

It would be neater if things that need fixing in the code or functionality to be added were GitHub issues. I need to make sure I reference these issues in commits though. :-)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.