@@ -122,6 +122,34 @@ public void PackScriptTreatsWarningsAsErrors()
122122 Assert . Contains ( "-p:TreatWarningsAsErrors=true" , script , StringComparison . Ordinal ) ;
123123 }
124124
125+ [ Fact ]
126+ public void PackScriptRestoresSelectedConfigurationBeforeNoBuildPack ( )
127+ {
128+ var repositoryRoot = RepositoryPaths . FindRepositoryRoot ( ) ;
129+ var scriptPath = Path . Combine ( repositoryRoot , EngineeringScriptsDirectoryName , "pack.sh" ) ;
130+
131+ Assert . True ( File . Exists ( scriptPath ) , "Expected package script at engineering/pack.sh." ) ;
132+
133+ var script = File . ReadAllText ( scriptPath ) ;
134+
135+ Assert . Contains ( "dotnet restore \" $project\" -p:Configuration=\" $configuration\" " , script , StringComparison . Ordinal ) ;
136+ }
137+
138+ [ Fact ]
139+ public void PublicApiScriptFallsBackWhenRipgrepIsUnavailable ( )
140+ {
141+ var repositoryRoot = RepositoryPaths . FindRepositoryRoot ( ) ;
142+ var scriptPath = Path . Combine ( repositoryRoot , EngineeringScriptsDirectoryName , "check-public-api.sh" ) ;
143+
144+ Assert . True ( File . Exists ( scriptPath ) , "Expected public API check script at engineering/check-public-api.sh." ) ;
145+
146+ var script = File . ReadAllText ( scriptPath ) ;
147+
148+ Assert . Contains ( "command -v rg" , script , StringComparison . Ordinal ) ;
149+ Assert . Contains ( "find src -name '*.cs' -print0" , script , StringComparison . Ordinal ) ;
150+ Assert . Contains ( "xargs -0 grep" , script , StringComparison . Ordinal ) ;
151+ }
152+
125153 [ Fact ]
126154 public void CSharpSourceFilesDoNotUseRepositoryLicenseHeaders ( )
127155 {
0 commit comments