Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 68 for corpus (0.12 sec)

  1. src/cmd/go/testdata/script/test_fuzz_modcache.txt

    go mod verify
    
    
    # If the module does include a test corpus, 'go test' (without '-fuzz') should
    # load that corpus and run the fuzz tests against it, but 'go test -fuzz=.'
    # should continue to be rejected.
    
    go get -t example.com/fuzzfail@v0.2.0
    
    ! go test example.com/fuzzfail
    stdout '^\s*fuzzfail_test\.go:7: oops:'
    
    ! go test -fuzz=. example.com/fuzzfail
    ! stdout .
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 28 20:43:39 UTC 2021
    - 1.8K bytes
    - Viewed (0)
  2. buildscripts/resolve-right-versions.sh

    	fi
    
    	(cd "${MC_BUILD_DIR}" && go build -o "$WORK_DIR/mc")
    
    	# remove mc source.
    	purge "${MC_BUILD_DIR}"
    
    	"${WORK_DIR}/mc" cp --quiet -r "buildscripts/cicd-corpus/" "${WORK_DIR}/cicd-corpus/"
    
    	"${MINIO[@]}" --address ":$start_port" "${WORK_DIR}/cicd-corpus/disk{1...5}" >"${WORK_DIR}/server1.log" 2>&1 &
    	pid=$!
    	disown $pid
    	sleep 5
    
    	if ! ps -p ${pid} 1>&2 >/dev/null; then
    		echo "server1 log:"
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed Aug 16 14:51:33 UTC 2023
    - 1.5K bytes
    - Viewed (0)
  3. src/cmd/go/testdata/script/test_fuzz_dup_cache.txt

    [!fuzz] skip
    [short] skip
    env GOCACHE=$WORK/cache
    
    # This test checks that cached corpus loading properly handles duplicate entries (this can
    # happen when a f.Add value has a duplicate entry in the cached corpus.) Duplicate entries
    # should be discarded, and the rest of the cache should be loaded as normal.
    
    env GOCACHE=$WORK/cache
    env GODEBUG=fuzzdebug=1
    
    mkdir -p $GOCACHE/fuzz/fuzztest/FuzzTarget
    go run ./populate $GOCACHE/fuzz/fuzztest/FuzzTarget
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 16 16:53:11 UTC 2023
    - 1K bytes
    - Viewed (0)
  4. src/cmd/go/testdata/script/test_fuzz_seed_corpus.txt

    ! stdout ^ok
    ! stdout 'Failing input written to testdata[/\\]fuzz[/\\]FuzzWithTestdata[/\\]'
    stdout 'failure while testing seed corpus entry: FuzzWithTestdata/1'
    stdout FAIL
    
    # Test that fuzzing a target with no seed corpus or cache finds a crash, prints
    # it, and write it to testdata
    ! go test -fuzz=FuzzWithNoCache -run=FuzzWithNoCache -fuzztime=1x
    ! stdout ^ok
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 17 19:51:29 UTC 2022
    - 6.1K bytes
    - Viewed (0)
  5. src/cmd/go/testdata/script/test_fuzz_run.txt

    stdout '=== RUN   FuzzFoo/thisfails'
    stdout '--- FAIL: FuzzFoo/thisfails'
    stdout '=== RUN   FuzzFoo/thispasses'
    stdout '--- PASS: FuzzFoo/thispasses'
    ! stdout 'no tests to run'
    
    # Tests where -run only matches one seed corpus which passes.
    
    go test -run FuzzFoo/thispasses
    stdout ok
    ! stdout 'no tests to run'
    
    go test -run /thispasses
    stdout ok
    ! stdout 'no tests to run'
    
    # Same tests in verbose mode
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 28 20:43:02 UTC 2021
    - 3K bytes
    - Viewed (0)
  6. src/cmd/go/testdata/script/test_fuzz_mutate_crash.txt

    # of the mutator finding a crash while fuzzing, adding it as a regression test
    # to the seed corpus in testdata, and failing the next time the test is run.
    
    [short] skip
    env GOCACHE=$WORK/cache
    
    # Running the seed corpus for all of the targets should pass the first
    # time, since nothing in the seed corpus will cause a crash.
    go test
    
    # Running the fuzzer should find a crashing input quickly.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 16 16:53:11 UTC 2023
    - 8.3K bytes
    - Viewed (0)
  7. src/cmd/go/testdata/script/test_fuzz_parallel.txt

    # by 'go test', so we can't distinguish that crasher from some other panic.
    ! go test -run=FuzzMutate -fuzz=FuzzMutate
    exists testdata/fuzz/FuzzMutate
    
    # Testdata should now contain a corpus entry which will fail FuzzMutate.
    # Run the test without fuzzing, setting -parallel to different values to make
    # sure it fails, and doesn't hang.
    ! go test -run=FuzzMutate -parallel=1
    ! go test -run=FuzzMutate -parallel=2
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 16 16:53:11 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  8. src/cmd/go/testdata/script/test_fuzz_cleanup.txt

    ! go test -run=FuzzTargetGoexit
    stdout cleanup
    
    # Cleanup should run after panic.
    ! go test -run=FuzzTargetPanic
    stdout cleanup
    
    # Cleanup should run in fuzz function on seed corpus.
    go test -v -run=FuzzFunction
    stdout '(?s)inner.*outer'
    
    # TODO(jayconrod): test cleanup while fuzzing. For now, the worker process's
    # stdout and stderr is connected to the coordinator's, but it should eventually
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 16 16:53:11 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  9. src/cmd/go/testdata/script/test_fuzz_minimize_interesting.txt

    				os.Exit(1)
    			}
    		}
    		if !containsVal {
    			fmt.Fprintln(os.Stderr, "corpus file contained no values")
    			os.Exit(1)
    		}
    	}
    }
    
    var valRe = regexp.MustCompile(`^\[\]byte\(([^)]+)\)$`)
    
    -- check_cache/check_cache.go --
    //go:build ignore
    // +build ignore
    
    // check_cache.go checks that each file in the cached corpus has a []byte
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 05 23:35:32 UTC 2023
    - 5.5K bytes
    - Viewed (0)
  10. src/cmd/go/testdata/script/test_fuzz_cache.txt

    go clean -fuzzcache
    ! exists $GOCACHE/fuzz
    go build -x ./empty
    ! stderr '(compile|gccgo)( |\.exe).*empty.go'
    
    # Fuzzing indicates that one new interesting value was found with an empty
    # corpus, and the total size of the cache is now 1.
    go clean -fuzzcache
    go test -fuzz=FuzzEmpty -fuzztime=10000x .
    stdout 'new interesting: 1'
    stdout 'total: 1'
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 30 17:22:49 UTC 2022
    - 1.9K bytes
    - Viewed (0)
Back to top