Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable LD_PRELOAD tests #216

Merged
merged 4 commits into from
Mar 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions .github/workflows/coverage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,13 @@ env:
jobs:
ubuntu-latest:

# Tests that use LD_PRELOAD are run only on Ubuntu 20.04, see #208
runs-on: ubuntu-20.04
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Install Dependences
run: |
sudo apt update && sudo apt install -y gdb pip curl python3.9-dev llvm \
sudo apt update && sudo apt install -y gdb pip curl python3.10-dev llvm \
openjdk-17-jdk ca-certificates gnupg
pip3 install atheris
sudo mkdir -p /etc/apt/keyrings
Expand Down
1 change: 0 additions & 1 deletion casr/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,3 @@ required-features = ["dojo"]

[dev-dependencies]
lazy_static = "1.4"
lsb_release = "0.1"
32 changes: 0 additions & 32 deletions casr/tests/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4049,10 +4049,6 @@ fn test_casr_libfuzzer() {
#[test]
#[cfg(target_arch = "x86_64")]
fn test_casr_libfuzzer_atheris() {
if lsb_release::info().unwrap().version == "22.04" {
SweetVishnya marked this conversation as resolved.
Show resolved Hide resolved
// LD_PRELOAD hangs, see #208
return;
}
use std::collections::HashMap;

let paths = [
Expand Down Expand Up @@ -4239,10 +4235,6 @@ fn test_casr_java() {
#[test]
#[cfg(target_arch = "x86_64")]
fn test_casr_java_native_lib() {
if lsb_release::info().unwrap().version == "22.04" {
// LD_PRELOAD hangs, see #208
return;
}
let paths = [
abs_path("tests/casr_tests/java/Test2.java"),
abs_path("tests/casr_tests/java/Test2.cpp"),
Expand Down Expand Up @@ -4378,10 +4370,6 @@ fn test_casr_python_atheris() {
#[test]
#[cfg(target_arch = "x86_64")]
fn test_casr_san_python_df() {
if lsb_release::info().unwrap().version == "22.04" {
// LD_PRELOAD hangs, see #208
return;
}
// Double free python C extension test
// Copy files to tmp dir
let work_dir = abs_path("tests/casr_tests/python");
Expand Down Expand Up @@ -4489,10 +4477,6 @@ fn test_casr_san_python_df() {
#[test]
#[cfg(target_arch = "x86_64")]
fn test_casr_san_atheris_df() {
if lsb_release::info().unwrap().version == "22.04" {
// LD_PRELOAD hangs, see #208
return;
}
// Double free python C extension test
// Copy files to tmp dir
let work_dir = abs_path("tests/casr_tests/python");
Expand Down Expand Up @@ -4604,10 +4588,6 @@ fn test_casr_san_atheris_df() {
#[test]
#[cfg(target_arch = "x86_64")]
fn test_casr_python_call_san_df() {
if lsb_release::info().unwrap().version == "22.04" {
// LD_PRELOAD hangs, see #208
return;
}
// Double free python C extension test
// Copy files to tmp dir
let work_dir = abs_path("tests/casr_tests/python");
Expand Down Expand Up @@ -4977,10 +4957,6 @@ fn test_casr_js_jazzer() {
#[test]
#[cfg(target_arch = "x86_64")]
fn test_casr_js_native() {
if lsb_release::info().unwrap().version == "22.04" {
// LD_PRELOAD hangs, see #208
return;
}
// JS C extension test
// Copy files to tmp dir
let work_dir = abs_path("tests/casr_tests/js");
Expand Down Expand Up @@ -5116,10 +5092,6 @@ fn test_casr_js_native() {
#[test]
#[cfg(target_arch = "x86_64")]
fn test_casr_js_native_jsfuzz() {
if lsb_release::info().unwrap().version == "22.04" {
// LD_PRELOAD hangs, see #208
return;
}
// JS jsfuzz C extension test
// Copy files to tmp dir
let work_dir = abs_path("tests/casr_tests/js");
Expand Down Expand Up @@ -5255,10 +5227,6 @@ fn test_casr_js_native_jsfuzz() {
#[test]
#[cfg(target_arch = "x86_64")]
fn test_casr_js_native_jazzer() {
if lsb_release::info().unwrap().version == "22.04" {
// LD_PRELOAD hangs, see #208
return;
}
// JS jsfuzz C extension test
// Copy files to tmp dir
let work_dir = abs_path("tests/casr_tests/js");
Expand Down
Loading