Przeglądaj źródła

Run fuzzing on Travis.

whitequark 7 lat temu
rodzic
commit
e4a53315b4
2 zmienionych plików z 6 dodań i 1 usunięć
  1. 3 0
      .test_like_travis.rb
  2. 3 1
      .travis.yml

+ 3 - 0
.test_like_travis.rb

@@ -13,4 +13,7 @@ travis_config['matrix']['include'].each do |env|
     system(cmd)
     $?.success? or exit 1
   end
+  env['env'].scan(/(\w+)=\'(.+?)\'/) do
+    ENV.delete $1
+  end
 end

+ 3 - 1
.travis.yml

@@ -35,8 +35,10 @@ matrix:
     - rust: nightly
       env: FEATURES='proto-ipv4 proto-ipv6 socket-raw socket-udp socket-tcp socket-icmp'
         MODE='build'
+    - rust: nightly
+      env: MODE='fuzz run' ARGS='packet_parser -- -max_len=1536 -max_total_time=30'
 script:
-  - cargo "$MODE" --no-default-features --features "$FEATURES"
+  - cargo $MODE --no-default-features --features "$FEATURES" $ARGS
 notifications:
   irc:
     channels: